import { get, post } from '../request/index'


/* =================菜单管理================= */
// 菜单添加
export const menuAdd = (data) => post('/menuadd', data)
// 菜单列表
export const menuList = () => get('/menulist', { istree: true })
// 菜单获取（一条）
export const menuInfo = (data) => get('/menuinfo', data)
// 菜单修改
export const menuEdit = (data) => post('/menuedit', data)
// 菜单删除
export const menuDelete = (data) => post('/menudelete', data)